'''
Author: wangjq4214
Date: 2022-05-01 21:11:05
LastEditTime: 2022-05-01 22:36:57
LastEditors: wangjq4214
'''
from typing import TypeVar, Optional
from pydantic.generics import GenericModel

DataT = TypeVar('DataT')


class BaseRes(GenericModel):
    code: int = 0
    msg: str = 'success'
    data: Optional[DataT]
